package cn.zucc.edu.handyzucc.dao;

import cn.zucc.edu.handyzucc.entity.User;

import java.util.List;

public interface UserDao {
    int signup(User user);
    User login(String user_username, String user_password);
    User getAuthorById(Integer user_id);
    User getStudentByUsername(String user_username);
    User getUserById(Integer user_id);
    List<User> getFollow(Integer follow_follower);
    List<User> getFans(Integer follow_leader);
    List<User> getUsersByKeyword(String keyword);
    int updateAvator(Integer user_id, Integer user_avator);

    List<User> getAllStudent();
    int deleteStudent(String user_username);
    int updateStudent(User user);
    int updateInfo(String type, String newValue, int user_id);
    int updatePassword(String user_username, String user_password);
    int resetPassword(String user_username);
    int resetPasswordUser(String user_username, String user_truename, String user_phone);
}
